#pragma once
#include "component_condition.h"

class path_component
{
public:
	enum component_style { STYLE_CONSTANT, STYLE_INTERVAL, STYLE_CONNECTOR} style;
	float cycle;
	//working variable
	float phrase;
	component_condition *p_condition;
	path_component(void);
	~path_component(void);
	virtual void clear();
	virtual void draw(float* start, float* end, float start_dist, float end_dist, float* delta) = 0;
	virtual void draw_corner(float *previous_point, float *cur_point, 
							float* previous_delta, float *cur_delta,
							float* center_point, float corner_radius) = 0;
	void update_phrase(float end_dist);
};

